package com.nebula.mapper;

import org.apache.ibatis.annotations.Param;
import org.junit.runners.Parameterized.Parameters;

import com.nebula.pojo.User;

public interface UserMapper {
    int deleteByPrimaryKey(String username);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(String username);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
    
    int checkUsername(String username);
    
    int checkEmail(String email);
    
    int checkPassword(@Param("password")String password,@Param("username") String username);
    
    int checkLoginUsername(String str);
    
    int login(@Param("str") String str,@Param("password") String password);
    
    User selectUserInfo(String username);
    
    String selectUsernameByLoginName(String loginName);
    
    long selectUsedStorageSpaceByUsername(String username);
    
    User selectByUsernameOrEmail(String str);
    
    int selectFriendByUsername(String username);
    
    int selectNickname(String nickname);
    
    int checkNickname(String nickname);
    
    User selectByEmail(String email);
    
    User selectByPhone(String phone);
    
    User selectByNickname(String nickname);
}